package com.loveling.controller;

import com.loveling.entity.JosnDemo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by liang on 2017/5/26.
 */


@RestController
@RequestMapping("/josndemo")
public class JosnDemoController {

    /**
     * @return JosnDemo
     * @test 测试地址：http://127.0.0.1:8080/josndemo/getjosndemo
     */
    @RequestMapping("/getjosndemo")
    public JosnDemo getJosnDemo() {
        JosnDemo josnDemo = new JosnDemo();
        josnDemo.setId(1);
        josnDemo.setName("Liangjiefa");
        return josnDemo;
    }

}
